<!-- 分割线 -->
<script setup lang="ts">
const props = withDefaults(defineProps<{
  color?: string
  width?: string | number
}>(), {
  color: '#EDEDED',
  width: '620',
})
</script>

<template>
  <view class="mx-auto h-1px" :style="{ width: `${props.width}rpx`, backgroundColor: props.color }" />
</template>
